using MyFramework.Network;
using MyFramework.Network.Entity;
using UnityEngine;

public class PlayerHandler : INetworkHandler
{
    public void OnSuccess(byte[] response)
    {
        var deserialize = ProtobufManager.Deserialize<Request>(response);
        Debug.Log($"name：{deserialize.Name}");
        Debug.Log($"message：{deserialize.Message}");
    }

    public void OnFailure(string error)
    {
        Debug.LogError("Error: " + error);
    }
}